require('hardhat-deploy')
require('dotenv').config()
require('hardhat-gas-reporter')
require('@nomiclabs/hardhat-ethers')
require('@nomicfoundation/hardhat-chai-matchers')
const SEPOLIA_RPC_URL = process.env.SEPOLIA_RPC_URL
const COINMARKETCAP_API_KEY = process.env.COINMARKETCAP_API_KEY
const ETHERSCAN_API_KEY = process.env.ETHERSCAN_API_KEY
const PRIVATE_KEY = process.env.PRIVATE_KEY
module.exports = {
  // solidity: '0.8.18',
  solidity: {
    compilers: [{ version: '0.8.8' }, { version: '0.6.1' }],
  },
  networks: {
    sepolia: {
      url: SEPOLIA_RPC_URL,
      accounts: [PRIVATE_KEY],
      chainId: 11155111,
      blockConfirmations: 6,
    },
  },
  gasReporter: {
    enable: true,
    outputFile: 'gas-repoter.txt',
    noColors: true,
    currency: 'USD',
    coinmarketcap: COINMARKETCAP_API_KEY,
    token: 'ETH',
  },
  etherscan: {
    apiKey: ETHERSCAN_API_KEY,
  },
  namedAccounts: {
    deployer: {
      default: 0,
    },
  },
}
